﻿#region

using System;
using Minion.Win.Client.IoC;
using Minion.Win.Client.Service;

#endregion

namespace Minion.Win.Client.Notification
{
    public class Email : NotificationBase
    {
        public Email(Guid locationItemDetailId, string message)
        {
            LocationItemDetailId = locationItemDetailId;
            Message = message;
        }

        public string Message { get; set; }

        public override bool SendNotification()
        {
            var notificationService = Container.Get<INotificationService>(App.Mode);
            if (notificationService.SendNotification(LocationItemDetailId, Message))
                return true;
            else
                return false;
        }
    }
}